package svc

import (
	"longbri/api/main/internal/config"
	"longbri/rpc/dashboardclient"

	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config    config.Config
	Dashboard dashboardclient.Dashboard
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		Dashboard: dashboardclient.NewDashboard(zrpc.MustNewClient(c.DashBoard)),
	}
}
